#include "RenderPch.h"

#include "SpotLight.h"
#include "Vector3.h"

CSpotLight::CSpotLight(void)
{
	Type = D3DLIGHT_SPOT;
}

void CSpotLight::Init( const Vector3& vPos, const Vector3& vDir, 
		const D3DCOLORVALUE& diffuse, 
		const D3DCOLORVALUE& ambient, 
		const D3DCOLORVALUE& specular,
		const float& fAttenu0,
		const float& fAttenu1,
		const float& fAttenu2,
		const float& fRange,
		const float& fTheta,
		const float& fPhi,
		const float& fFalloff )
{
	Direction = vDir;
	Position = vPos;

	Diffuse = diffuse;
	Ambient = ambient;
	Specular = specular;

	Attenuation0 = fAttenu0;
	Attenuation1 = fAttenu1;
	Attenuation2 = fAttenu2;

	Range = fRange;
	Theta = fTheta;
	Phi = fPhi;
	Falloff = fFalloff;
}